import request from '@/utils/request'

// 查询产权信息列表
export function listPropertyFund(query) {
  return request({
    url: '/property/propertyFund/list',
    method: 'get',
    params: query
  })
}

// 查询产权信息变更列表
export function listChangePropertyFund(query) {
  return request({
    url: '/property/propertyFund/changeList',
    method: 'get',
    params: query
  })
}

// 查询产权信息详细
export function getPropertyFund(id) {
  return request({
    url: '/property/propertyFund/' + id,
    method: 'get'
  })
}

// 保存产权信息
export function savePropertyFund(data) {
  return request({
    url: '/property/propertyFund/save',
    method: 'post',
    data: data
  })
}

// 删除产权信息
export function delPropertyFund(id) {
  return request({
    url: '/property/propertyFund/' + id,
    method: 'delete'
  })
}

// 导出产权信息
export function exportPropertyFund(query) {
  return request({
    url: '/property/propertyFund/export',
    method: 'get',
    params: query
  })
}

// 删除基金标的
export function delPropertyFundDeal(id) {
  return request({
    url: '/property/propertyFundDeal/' + id,
    method: 'delete'
  })
}

// 删除出资信息
export function delPropertyFundLp(id) {
  return request({
    url: '/property/propertyFundLp/' + id,
    method: 'delete'
  })
}
// 查询产权信息列表
export function listPropertyCompany(query) {
  return request({
    url: '/propertyCompany/propertyCompany/list',
    method: 'get',
    params: query
  })
}

// 查询架构图
export function getGraph() {
  return request({
    url: '/property/propertyFund/getGraph',
    method: 'get'
  })
}
